﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Runtime.InteropServices;
using System.Threading;
using System.Diagnostics;
using System.IO;
using System.IO.Ports;

namespace testApp
{
    public partial class Program
    {
        static Win32 r1000Driver;

        static void Main(string[] args)
        {
            r1000Driver = new Win32();

            if (r1000Driver.DriverOpen() == false)
            {
                Console.WriteLine("Open Error");
                return;
            }

            // FW Version
            uint fwVersion;
            r1000Driver.readReg(0, out fwVersion);

            r1000Driver.DriverClose();
        }
    }
}
